#include <iostream>
using namespace std;

int main() {
    string input;
    while (getline(cin, input))
    {
        for (auto& c : input)
        {
            if (c >= 'A' && c <= 'Z')
            {
                (c -= 5) >= 'A' ? c : c = 91 - ('A' - c);
            }
        }
        cout << input << endl;
    }
    return 0;
}